def pow(a,b):
    return 1 if b == 0 else a * pow(a, b - 1)

if __name__ == "__main__":
    a, b = map(float, input().split())
    print(pow(a ,b))